feat(mention): @ 引用按共同历史自动选投影 - #56
Open
qiankunli wants to merge 1 commit into
Open
Conversation
同一 fork 树(有共同历史)的会话被 @ 引用时,注入共享水位之后的 全部 turn(不做预算截断,共享前缀不重复);无共同历史的会话维持 原有 4KB 预算摘要注入。用户无需在 summary/transcript 之间做选择。 - mention.ts 新增 sharedHistoryWatermark:沿 forkedFrom 链找共同 祖先,取沿途 throughSeq running-min 的较小者作为共同历史水位 - buildSessionContext 增加 fromSessionId 选项,按关系选投影 - expandMentions 增加 currentSessionId 参数;TUI/CLI 调用点传入 - 新增水位计算与两种投影路径的测试
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
同一 fork 树(有共同历史)的会话被 @ 引用时,注入共享水位之后的
全部 turn(不做预算截断,共享前缀不重复);无共同历史的会话维持
原有 4KB 预算摘要注入。用户无需在 summary/transcript 之间做选择。
祖先,取沿途 throughSeq running-min 的较小者作为共同历史水位